<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-roomLei-edit" th:object="${roomLei}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
	            <div class="form-group">	
                <label class="col-sm-3 control-label">房间ID：</label>
                <div class="col-sm-8">
                    <input id="roomId" name="roomId" th:field="*{roomId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">1 单雷 2 多雷：</label>
                <div class="col-sm-8">
                    <input id="type" name="type" th:field="*{type}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">红包数量：</label>
                <div class="col-sm-8">
                    <input id="amount" name="amount" th:field="*{amount}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">金额范围最小：</label>
                <div class="col-sm-8">
                    <input id="moneyMin" name="moneyMin" th:field="*{moneyMin}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">金额范围最大：</label>
                <div class="col-sm-8">
                    <input id="moneyMax" name="moneyMax" th:field="*{moneyMax}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">一雷：</label>
                <div class="col-sm-8">
                    <input id="oneLei" name="oneLei" th:field="*{oneLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">二雷：</label>
                <div class="col-sm-8">
                    <input id="twoLei" name="twoLei" th:field="*{twoLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">三雷：</label>
                <div class="col-sm-8">
                    <input id="threeLei" name="threeLei" th:field="*{threeLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">四雷：</label>
                <div class="col-sm-8">
                    <input id="fourLei" name="fourLei" th:field="*{fourLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">五雷：</label>
                <div class="col-sm-8">
                    <input id="fiveLei" name="fiveLei" th:field="*{fiveLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">六雷：</label>
                <div class="col-sm-8">
                    <input id="sixLei" name="sixLei" th:field="*{sixLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">七雷：</label>
                <div class="col-sm-8">
                    <input id="sevenLei" name="sevenLei" th:field="*{sevenLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">八雷：</label>
                <div class="col-sm-8">
                    <input id="eightLei" name="eightLei" th:field="*{eightLei}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">九雷：</label>
                <div class="col-sm-8">
                    <input id="nineLei" name="nineLei" th:field="*{nineLei}" class="form-control" type="text">
                </div>
            </div>
									</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/roomLei"
		$("#form-roomLei-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-roomLei-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
